﻿// -----------------------------------------------------------------------
// <copyright file="NavigationFrameMessage.cs" company="CompDJ">
//     Copyright (c) CompDJ. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------

namespace T4DemoCs.Navigation
{
    using System;
    using GalaSoft.MvvmLight.Messaging;

    /// <summary>Navigation Frame Message class.</summary>
    public class NavigationFrameMessage : MessageBase
    {
        /// <summary>Initializes a new instance of the NavigationFrameMessage class.</summary>
        /// <example>Messenger.Default.Send&lt;NavigationFrameMessage&gt;(new NavigationFrameMessage(this.MainFrame));</example>
        public NavigationFrameMessage()
        {
        }

        /// <summary>Initializes a new instance of the NavigationFrameMessage class.</summary>
        /// <param name="frame">Frame to use for navigation</param>
        public NavigationFrameMessage(object frame)
        {
            this.Target = frame;
        }
    }
}